# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-prospector
_pkgname=prospector
pkgver=1.17.2
pkgrel=1
pkgdesc='Python static analysis tool.'
arch=('any')
url='https://pypi.org/project/prospector/#files'
license=('GPL2')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('9016adeaea06ccb6b71e1bdaf78344f475b87b1e8e17a20ae2ce48421b1422c5295b2ebab7f91bf8463d4950d30eceebc850003cf25210fdf556d0efbb5ffbf0')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

